package com.ruoyi.hcmain.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料对象 hc_stuff
 *
 * @author ruoyi
 * @date 2023-08-13
 */
public class HcStuff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料id */
    private Long stuffId;

    /** 关联编码 */
    @Excel(name = "关联编码")
    private String sapnum;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 图号 */
    @Excel(name = "图号")
    private String drawno;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 当前价格 */
    @Excel(name = "当前价格")
    private BigDecimal prices;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long counts;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date covtime;

    public void setStuffId(Long stuffId)
    {
        this.stuffId = stuffId;
    }

    public Long getStuffId()
    {
        return stuffId;
    }
    public void setSapnum(String sapnum)
    {
        this.sapnum = sapnum;
    }

    public String getSapnum()
    {
        return sapnum;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setDrawno(String drawno)
    {
        this.drawno = drawno;
    }

    public String getDrawno()
    {
        return drawno;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setPrices(BigDecimal prices)
    {
        this.prices = prices;
    }

    public BigDecimal getPrices()
    {
        return prices;
    }
    public void setCounts(Long counts)
    {
        this.counts = counts;
    }

    public Long getCounts()
    {
        return counts;
    }
    public void setCovtime(Date covtime)
    {
        this.covtime = covtime;
    }

    public Date getCovtime()
    {
        return covtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("stuffId", getStuffId())
                .append("sapnum", getSapnum())
                .append("type", getType())
                .append("drawno", getDrawno())
                .append("name", getName())
                .append("unit", getUnit())
                .append("prices", getPrices())
                .append("counts", getCounts())
                .append("covtime", getCovtime())
                .toString();
    }
}
